Calibrating the Complexity of Ternary Propositional Connectives

نویسندگان

  • William Bradley
  • Alex Dunn
  • Steve Harenberg
  • Matthew Owen
  • Matthew Roberts
چکیده

For each ternary propositional connective, we determine the minimum number of binary connectives needed to construct a logically equivalent formula. In order to reduce this problem to a computably feasible one, we prove a number of lemmas showing that every element of a large set of formulas is logically equivalent to a formula in a much smaller associated set. Acknowledgements: Professor Jeffry Hirst was the faculty mentor for this project. This research was supported by National Science Foundation Grant STEP-0756928. Principal investigators: Professors Tashakkori, Bennett, Kurtz, Palmer, and Russell. Subject Classification: 03B05 Page 150 RHIT Undergrad. Math. J., Vol. 11, no. 2 We will be working with formulas of propositional calculus. In usual treatments of propositional calculus [2], formulas are built from statement letters and binary (two variable) connectives. These connectives are usually written as infix operators, yielding formulas like P → Q. We will also be using ternary (three variable) connectives, using prefix notation as shown below. We say two formulas are logically equivalent if the last columns of their truth tables agree. Each ternary (three variable) connective has a truth table with eight rows. There are 256 such tables and so 256 ternary connectives. We can label a connective with the hexadecimal code for the last column of its table. The truth table for [E0](P,Q,R) is shown below. P Q R [E0](P,Q,R) 1 1 1 1 1 1 0 E 1 1 0 1 0 1 1 0 0 0 1 1 0 0 0 0  0 0 1 0 0 0 1 0 0 0 [E0](P,Q,R) has exactly the same truth table as P ∧ (Q ∨ R). (If we like we can use single digit hexadecimal representations for the binary connectives, writing P ∧ (Q ∨ R) as P [8](Q[E]R).) Also, though this is not at all obvious, no formula with fewer than two binary connectives has the same truth table as [E0](P,Q,R). Since two is the smallest number n such that [E0](P,Q,R) is logically equivalent to a formula with n binary connectives, we say that the connective [E0] is 2-optimal. We generalize this notion in the following definition. Definition. A ternary connective [i](P,Q,R) is called n-optimal if it is logically equivalent to a formula containing n binary connectives, but not logically equivalent to any formula containing n− 1 binary connectives. It should be noted with our definition we consider only formulas with binary (two-place) connectives. Consequently, ¬P can be written as [3](P, P ) using one binary connective. The 0-ary (zero place) connectives > and ⊥ are logically equivalent to [F ](P, P ) and [0](P, P ) respectively. For the cases described above there are no logically equivalent formulas that can be constructed (using only binary connectives and statement letters) with fewer than one connective, meaning they are 1-optimal. Our goal is to find all the ternary connectives that are n-optimal for each value of n. For the initial case, we can easily find the 0-optimal connectives. Lemma 1. Every 0-optimal ternary connective [i](P,Q,R) is logically equivalent to P , Q, or R. Proof. A ternary connective is 0-optimal if it is logically equivalent to a formula consisting of zero binary connectives and a statement letter selected from the set {P,Q,R}. The only formulas of this sort are the single letter formulas P , Q, and R. RHIT Undergrad. Math. J., Vol. 11, no. 2 Page 151 Now we can take each of the three 0-optimal formulas and write out their truth table as a ternary connective. The table for the formula P is as follows. P Q R P ≡ [F0](P,Q,R) 1 1 1 1 1 1 0 1 1 0 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0 0 The hexadecimal code for the last column is F0, so the formula P is logically equivalent to the ternary connective [F0](P,Q,R). Similar calculations for Q and R complete the proof of the following proposition. Proposition 2. There are exactly three ternary connectives that are 0-optimal. They are: [AA], [CC], and [F0]. The 1-optimal connectives are all those connectives that are not 0-optimal and are logically equivalent to a formula with one binary connective. Whenever two of these formulas are logically equivalent, they both correspond to the same ternary connective, so examining one of them is sufficient. The following lemma identifies many logically equivalent pairs. Lemma 3. Every formula of the form P [i]Q (with one binary connective) is logically equivalent to a formula of the form Q[j]P . Proof. Suppose that the binary connective [i] has a truth table whose last column contains the binary string abcd. If we like, we can write [i] as [abcd]. Let [j] be the connective [acbd]. Then P [i]Q is logically equivalent to Q[j]P , as shown in the following truth table. P Q P [i]Q Q[i]P Q[j]P 1 1 a a a 1 0 b c b 0 1 c b c 0 0 d d d Informally, swapping the middle bits in the connective and swapping the order of the letters in the formula are inverse operations. Applying Lemma 3, we can find a smaller set of formulas that still includes at least one formula that is logically equivalent to each 1-optimal ternary connective. Lemma 4. Every 1-optimal ternary connective [i](P,Q,R) is logically equivalent to a formula in the list P [j]Q P [j]R Q[j]R where 0 ≤ j ≤ F. (Here F is the hexadecimal code for 15.) Page 152 RHIT Undergrad. Math. J., Vol. 11, no. 2 Proof. A ternary connective is 1-optimal if it is logically equivalent to a formula with 1 binary connective. The entire list of formulas that contain letters taken from {P,Q,R} and one binary connective is: P [j]P , P [j]Q, P [j]R, Q[j]Q, Q[j]P , Q[j]R, R[j]R, R[j]P , R[j]Q where 0 ≤ j ≤ F. We need to show that all of these are logically equivalent to a formula of the form P [j]Q, P [j]R, or Q[j]R, where 0 ≤ j ≤ F. P [j]R, P [j]Q, and Q[j]R are already in our short list of formulas. A formula of the form P [k]P must be always true, equivalent to P , equivalent to ¬P , or always false. The following table shows that P [k]P is equivalent to a formula of the form P [j]Q for an appropriate choice of j. P Q P [F]Q P [C]Q P [3]Q P [0]Q 1 1 1 1 0 0 1 0 1 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 Similarly, Q[k]Q is equivalent to a formula of the form Q[j]R. Formulas of the form R[k]R are equivalent to ones of the form R[m]P , which are in turn equivalent to ones of the form P [j]R by Lemma 3. The connectives Q[j]P , R[j]P , and R[j]Q can all be addressed by Lemma 3. In light of Lemma 4, we can discover all the 1-optimal ternary connectives by examining the truth tables of the 48 formulas listed in the lemma. The total number of formulas that contain statement letters from {P,Q,R} and exactly one binary connective is much larger. Since each letter can be selected from a set of three letters and the connective is selected from a set of 16 connectives, the total number of such formulas is 3 · 16 · 3 = 144. Thus Lemma 4 substantially reduces the number of truth tables that must be checked. Even so, many of the formulas listed in Lemma 4 are logically equivalent to each other or to a 0-optimal connective. Consequently, when all 48 truth tables are computed, only 35 different 1-optimal connectives are found. We used Maple software to calculate these truth tables, verifying the following proposition. Proposition 5. There are exactly 35 ternary connectives that are 1-optimal. They are: [00] [03] [05] [0A] [0C] [0F] [11] [22] [30] [33] [3C] [3F] [44] [50] [55] [5A] [5F] [66] [77] [88] [99] [A0] [A5] [AF] [BB] [C0] [C3] [CF] [DD] [EE] [F3] [F5] [FA] [FC] [FF] For 2-optimal and 3-optimal connectives, the number of formulas to be searched increases very rapidly. The next lemma allows us to eliminate a number of connectives from our formulas, saving a substantial amount of computer time. RHIT Undergrad. Math. J., Vol. 11, no. 2 Page 153 Lemma 6. Suppose that n ≥ 2 and φ is a formula containing n binary connectives. If φ includes the connective [i] where i ∈ {0, 3, 5, [A], [C], [F]}, then there is a formula with less than n connectives which is logically equivalent to φ. Proof. We will argue by contradiction. Suppose n ≥ 2 and n is the least integer such that there is a formula φ containing exactly n connectives, at least one of which is in {0, 3, 5, [A], [C], [F]}, and no formula with fewer connectives is logically equivalent to φ. We address two cases for each proscribed connective. Case [0]A: Suppose φ is α[0]β. Then φ is logically equivalent to P [0]P , where P is a (actually any) statement letter. This contradicts the claim that φ is not equivalent to any formula with fewer connectives. Case [0]B: Suppose φ is α[i]β where β or α contains [0]. First, suppose that β contains [0]. If β contains two or more connectives, then by the minimality of n, β is logically equivalent to a formula with fewer connectives. Substituting this formula for β yields a formula with fewer than n connectives which is equivalent to φ, contradicting our hypothesis. Thus, β must be of the form P [0]Q for some choice of statement letters P and Q. Consequently, φ is α[i](P [0]Q). Suppose that the binary representation of [i] is [abcd]. Then φ = α[abcd](P [0]Q) is logically equivalent to α[bbdd]γ for any choice of γ, as shown by the following truth table. α γ α[abcd]γ P [0]Q α[abcd](P [0]Q) α[bbdd]γ 1 1 a 0 b b 1 0 b 0 b b 0 1 c 0 d d 0 0 d 0 d d In particular, φ is logically equivalent to α[bbdd]P which has fewer connectives than φ, yielding another contradiction and completing the case when β contains [0]. By Lemma 3, the situation where α contains [0] also yields a contradiction. Case [F]A: Suppose φ is α[F]β. This case is similar to Case [0]A, except φ is equivalent to P [F]P . Case [F]B: Suppose φ is α[i]β where β or α contains [F]. This case is similar to case [0]B except α[abcd]β is logically equivalent to α[aacc]P . Case [3]A: Suppose φ is α[3]β. Then φ is logically equivalent to ¬α. If α is a statement letter (say P ), then ¬α is equivalent to P [3]P . If α is not a statement letter, then α has the form γ[i]δ where [i] is [abcd]. In this situation, ¬α is equivalent to γ[āb̄c̄d̄]δ where s̄ = 1 − s for all s ∈ {a, b, c, d}. In either case, ¬α is logically equivalent to a formula with fewer than n connectives, yielding a contradiction. Page 154 RHIT Undergrad. Math. J., Vol. 11, no. 2 Case [3]B: Suppose φ is α[i]β where β or α contains [3]. First, suppose β contains [3]. If β contains two or more connectives, then by emulating Case [0]B and applying the minimality of n, we can derive a contradiction. Thus β is of the form P [3]Q for some statement letters P and Q. Consequently, φ is logically equivalent to α[i]¬P . If [i] is [abcd], then we can use the following truth table to verify that φ is equivalent to α[badc]P . α P α[abcd]P α[abcd]¬P α[badc]P 1 1 a b b 1 0 b a a 0 1 c d d 0 0 d c c Consequently, φ is logically equivalent to a formula with fewer than n connectives, yielding a contradiction and completing the case where β contains [3]. An application of Lemma 3 shows that a contradiction also arises when α contains [3]. Case [5]A: Suppose φ is α[5]β. Then φ is logically equivalent to ¬β. This case is very similar to Case [3]A. Case [5]B: Suppose φ is α[i]β where β or α contains [5]. This case is very similar to Case [3]B. Case [A]A: Suppose φ is α[A]β. Then φ is logically equivalent to β. Since β contains fewer connectives than φ, we have an immediate contradiction. Case [A]B: Suppose φ is α[i]β where β or α contains [A]. First, suppose β contains [A]. If β contains two or more connectives, by minimality of n we are done. Thus β is P [A]Q for some statement letters P and Q. So φ is logically equivalent to α[i]Q, which contains fewer than n connectives and yields a contradiction. The situation where α contains [A] can be handled via Lemma 3. Case [C]A: Suppose φ is α[C]β. Then φ is logically equivalent to α, yielding the desired contradiction. Case [C]B: Suppose φ is α[i]β where β or α contains [C]. This is very similar to Case [A]B, except that α[i](P [C]Q) is logically equivalent to α[i]P . In light of the preceding cases, there is no least n ≥ 2 for which the lemma fails, so the lemma must hold for all n ≥ 2. Now we can apply Lemma 6 to prove the lemma that will help us determine the 2-optimal ternary connectives. RHIT Undergrad. Math. J., Vol. 11, no. 2 Page 155 Lemma 7. Every 2-optimal ternary connective [i](P,Q,R) is logically equivalent to a formula in the list P [j](Q[k]R) Q[j](P [k]R) R[j](P [k]Q) where j and k are in {1, 2, 4, 6, 7, 8, 9,B,D,E}. Proof. We will begin by eliminating formulas with repeated letters. Suppose φ is a formula that contains two connectives and at most two statement letters. For convenience, we may assume that the statement letters in φ are in {P,Q}. The formula φ has a truth table of the following form, where a, b, c, and d represent binary digits.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Truth Values and Connectives in Some Non-Classical Logics

The question as to whether the propositional logic of Heyting, which was a formalization of Brouwer's intuitionistic logic, is finitely many valued or not, was open for a while (the question was asked by Hahn). Kurt Gödel (1932) introduced an infinite decreasing chain of intermediate logics, which are known nowadays as Gödel logics, for showing that the intuitionistic logic is not finitely (man...

متن کامل

Equality propositional logic and its extensions

We introduce a new formal logic, called equality propositional logic. It has two basic connectives, $boldsymbol{wedge}$ (conjunction) and $equiv$ (equivalence). Moreover, the $Rightarrow$ (implication) connective can be derived as $ARightarrow B:=(Aboldsymbol{wedge}B)equiv A$. We formulate the equality propositional logic and demonstrate that the resulting logic has reasonable properties such a...

متن کامل

Establishing Propositional Relations in Reading Stories

This study examined the establishment of coherence relations by Persian EFL learners in their reading of stories. 201 undergraduate EFL learners read narrative passages and selected appropriate coherence elements of different types necessary for the proper construction of meaning. The results demonstrated a consistent pattern of a text-specific hierarchy for the comprehension of conjunctive rel...

متن کامل

Proposition Algebra and Short-Circuit Logic

Short-circuit evaluation denotes the semantics of propositional connectives in which the second argument is only evaluated if the first argument does not suffice to determine the value of the expression. In programming, short-circuit evaluation is widely used. We review proposition algebra [2010], an algebraic approach to propositional logic with side effects that models short-circuit evaluatio...

متن کامل

The Complexity of Propositional Implication

The question whether a set of formulae Γ implies a formula φ is fundamental. The present paper studies the complexity of the above implication problem for propositional formulae that are built from a systematically restricted set of Boolean connectives. We give a complete complexity classification for all sets of Boolean functions in the meaning of Post’s lattice and show that the implication p...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010